package cn.stylefeng.guns.modular.info.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author luo
 * @since 2021-05-06
 */
@TableName("yy_info")
@Data
public class Info implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 详情
     */
    @TableField("content")
    private String content;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    @Override
    public String toString() {
        return "Info{" +
        "id=" + id +
        ", createTime=" + createTime +
        ", content=" + content +
        ", name=" + name +
        "}";
    }
}
